﻿using AppFramework.DinosaursParkMes.ProductionPlanningModel;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace AppFramework.DinosaursParkMes.ProductionPlanning.Dto
{
    public class AddProductionPlanningDto
    {
        ///// <summary>
        ///// 计划编号
        ///// </summary>
        //public string Planningnumber { get; set; }

        /// <summary>
        /// 计划名称
        /// </summary>
        [Required]
        public string Planningname { get; set; }

        /// <summary>
        /// 来源类型
        /// </summary>
        public string Sourcetype { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string Ordernumber { get; set; }

        /// <summary>
        /// 成品名称
        /// </summary>
        [Required]
        public string Finishedname { get; set; }

        /// <summary>
        /// 成品编号
        /// </summary>
        [Required]
        public string Finishednumber { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specificationversion { get; set; }

        /// <summary>
        /// 成品l类型
        /// </summary>
        public string Finishedtype { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 计划数量
        /// </summary>
        public int? Planningcount { get; set; }

        /// <summary>
        /// 开工时间
        /// </summary>
        public DateTime? Starttime { get; set; }

        /// <summary>
        /// 完工时间
        /// </summary>
        public DateTime? Timeofcompletion { get; set; }

        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime? Demanddate { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// BOM编号
        /// </summary>
        [Required]
        public string BOMNumber { get; set; }
        public List<ProductionPlanningAccessorylist> AccessoryChildren { get; set; }
    }
    
    public class ProductionPlanningAccessorylist
    {
        /// <summary>
        /// 图片名称
        /// </summary>
        public string Filename { get; set; }
        /// <summary>
        /// 图片路径
        /// </summary>
        public string Filepath { get; set; }

    }

}
